<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<link href="Css/default1.css.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="Js/calendar.js"></script>
<script language="javascript" type="text/javascript">
<!--
function fnOnBack() {
	var url = '<?php echo url('BoDashboard', 'Welcome'); ?>';
	document.location.href = url;
}
// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>
</head>

<body>
<div id="main_title"><a href="#">后台管理中心</a>—用户编辑</div>
<div id="main_content">
  <form action="<?php echo $this->_url('save',array('catid' => $catid,'access' => $_REQUEST['access'])); ?>" method="post" enctype="multipart/form-data" name="form1" id="form1">
   <table width="100%" border="0" cellspacing="2" cellpadding="2">
		<tr>
		  <td width="30%" class="title">*编号</td>
		  <td><input type="text" name="code" id="code" value="<?php echo $article['code']; ?>"/></td>
	    </tr>
        <tr>
		  <td class="title">*姓名</td>
		  <td><input type="text" name="name" id="name" value="<?php echo $article['name']; ?>"/></td>
	    </tr>
        <tr>
		  <td class="title">*部门</td>
	      <td>
		  <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>			  
		    <select name="dept_id" size="1" id="dept_id">
		    <option value="0">--请选择--</option>
				<?php
                if (isset($article['dept_id'])) {
                    $selectedClasses = (array)$article['dept_id'];
                } else {
                    $selectedClasses = array();
                }
                foreach ($deptclasses as $class){
                ?>
                <option value="<?php echo $class['class_id']; ?>"<?php if (in_array($class['class_id'], $selectedClasses)): ?>selected<?php endif; ?>><?=$class['name']?></option>
                <?php 
				}
                ?>
                </select>
              </td> 
            </tr>
          </table>
          </td>
	    </tr>
        <tr>
		  <td class="title">*职位</td>
	      <td>
		  <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>			  
		    <select name="position_id" size="1" id="position_id">
		    <option value="0">--请选择--</option>
				<?php
                if (isset($article['position_id'])) {
                    $selectedClasses = (array)$article['position_id'];
                } else {
                    $selectedClasses = array();
                }
                foreach ($positions as $class){
                ?>
                <option value="<?php echo $class['class_id']; ?>"<?php if (in_array($class['class_id'], $selectedClasses)): ?>selected<?php endif; ?>><?=$class['name']?></option>
                <?php 
				}
                ?>
                </select>
              </td> 
            </tr>
          </table>
          </td>
	    </tr>
        <tr>
		  <td class="title">*学历</td>
	      <td>
		  <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>			  
		    <select name="education" size="1" id="education">
		    <option value="0">--请选择--</option>
				<?php
                if (isset($article['education'])) {
                    $selectedClasses = (array)$article['education'];
                } else {
                    $selectedClasses = array();
                }
                foreach ($education as $class){
                ?>
                <option value="<?php echo $class['class_id']; ?>"<?php if (in_array($class['class_id'], $selectedClasses)): ?>selected<?php endif; ?>><?=$class['name']?></option>
                <?php 
				}
                ?>
                </select>
              </td> 
            </tr>
          </table>
          </td>
	    </tr>
        <tr>
		  <td class="title">*养老保险</td>
	      <td>
		  <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>			  
		    	<select name="endowment" id="endowment">
		    	<option value="0">要钱</option>
				<option value="1" <?php if($article['endowment']==1)echo 'selected="selected"'; ?>>上保险</option>
                </select>
              </td> 
            </tr>
          </table>
          </td>
	    </tr>
        <tr>
		  <td class="title">*医疗保险</td>
	      <td>
		  <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>			  
		    	<select name="medicare" id="medicare">
		    	<option value="0">要钱</option>
				<option value="1" <?php if($article['medicare']==1)echo 'selected="selected"'; ?>>上保险</option>
                </select>
              </td> 
            </tr>
          </table>
          </td>
	    </tr>
        <tr>
		  <td valign="top" class="title">入职时间</td>
		  <td><input name="employ_time" id="employ_time" type="text" value="<?=$article['employ_time']?>" readonly="readonly" /><img style="cursor:pointer" src="Images/app.png" id="schange" alt="入职时间" onClick="show_cele_date(this,employ_time)" width="18" height="18"></td>
		</tr>
        <tr>
		  <td valign="top" class="title">转正时间</td>
		  <td><input name="permanent_time" id="permanent_time" type="text" value="<?=$article['permanent_time']?>" readonly="readonly" /><img style="cursor:pointer" src="Images/app.png" id="schange" alt="入职时间" onClick="show_cele_date(this,permanent_time)" width="18" height="18"></td>
		</tr>
        <tr>
		  <td valign="top" class="title">工龄修正</td>
		  <td><input type="text" name="correction_month" id="correction_month" value="<?php echo (int)$article['correction_month']; ?>"/>
		  以月为单位，休产假的填一个负数，辞工回来的，入职时间和转正都填新的，把以前的工龄折合成月数填个正数</td>
		</tr>  
		<tr>
		  <td valign="top" class="title">排序</td>
		  <td><input style="width:30px;" name="hot" id="hot" type="text" value="<?php echo $article['hot']; ?>"/>只能填0-99的正整数，值越大排名越靠前</td>
		</tr>
		<tr>
		  <td align="center" colspan="2">
              <button type="submit" name="Save" id="Save" class="btnA">发布</button>&nbsp;&nbsp;
              <input name="Cancel" type="button" id="Cancel" value="<?php echo h(_T('ui_g_cancel')); ?>" onclick="fnOnBack();" />
          </td>
	    </tr>
		<tr>
		  <td>&nbsp;</td>
		  <td></td>
		</tr>
	</table>
	<input name="<?php echo $pk; ?>" type="hidden" id="<?php echo $pk; ?>" value="<?php echo $article[$pk]; ?>"/>
  </form>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
